namespace Asmex.FileViewer
{
    using System;
    using System.IO;

    public class MDGUIDHeap : MDHeap
    {
        public MDGUIDHeap(BinaryReader reader, long offs, long size, string name)
        {
            reader.BaseStream.Position = offs;
            base.Start = offs;
            base.Length = size;
            base._name = name;
            while (reader.BaseStream.Position < (offs + size))
            {
                int key = (int) (reader.BaseStream.Position - offs);
                MDGUID mdguid = new MDGUID(reader);
                base._data.Add(key, mdguid);
            }
        }
    }
}
